/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package eypweb_bsc;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 *
 * @author Kohalmi Istvan
 */

// vagyonkezelo adatait tarolo osztaly
public class Trustee {
    // azonosito
    private int id;
    // csoportos azonosito
    private int idTrustee;
    // nev
    private StringProperty name;
    // rovid nev
    private StringProperty shortName;
    // iranyitoszam
    private StringProperty zip;
    // varos
    private StringProperty city;
    // cim
    private StringProperty address;
    // telefonszam
    private StringProperty tel;
    // mobilszam
    private StringProperty mobile;
    // faxszam
    private StringProperty fax;
    // e-mail cim
    private StringProperty mail;
    // kapcsolattarto neve
    private StringProperty connection;
    // kapcsolattarto beosztasa
    private StringProperty assignment;
    // hataly kezdete
    private StringProperty startDate;
    // hataly vege
    private StringProperty endDate;
    // modositas flag
    private boolean modified;

    public Trustee() {
        modified = false;
    }
    
    public boolean getModified(){
        return modified;
    }
    
    public void setModified(){
        modified = true;
    }
    
    public void setId(int i)
    {
        id = i;
    }
    
    public int getId()
    {
        return id;
    }
        
    public void setIdTrustee(int value)
    {
        idTrustee=value;
    }
    
    public int getIdTrustee()
    {
        return idTrustee;
    }
    
    public StringProperty nameProperty() {
        if (name == null) {
            name = new SimpleStringProperty(this, "name");
        }
        return name;
    }

    public void setName(String value) {
        nameProperty().set(value);
    }

    public String getName() {
        return nameProperty().get();
    }

    public StringProperty startDateProperty() {
        if (startDate == null) {
            startDate = new SimpleStringProperty(this, "startDate");
        }
        return startDate;
    }

    public void setStartDate(String value) {
        startDateProperty().set(value);
    }

    public String getStartDate() {
        return startDateProperty().get();
    }

    public StringProperty endDateProperty() {
        if (endDate == null) {
            endDate = new SimpleStringProperty(this, "endDate");
        }
        return endDate;
    }

    public void setEndDate(String value) {
        endDateProperty().set(value);
    }

    public String getEndDate() {
        return endDateProperty().get();
    }
    
    public StringProperty shortNameProperty()
    {
        if (shortName == null) {
            shortName = new SimpleStringProperty(this, "shortName");
        }
        return shortName;
    }
    
    public void setShortName(String value)
    {
        shortNameProperty().set(value);
    }
    
    public String getShortName(){
        return shortNameProperty().get();
    }
    
    public StringProperty zipProperty() {
        if (zip == null) {
            zip = new SimpleStringProperty(this, "zip");
        }
        return zip;
    }

    public void setZip(String value) {
        zipProperty().set(value);
    }

    public String getZip() {
        return zipProperty().get();
    }
    
    public StringProperty cityProperty() {
        if (city == null) {
            city = new SimpleStringProperty(this, "city");
        }
        return city;
    }

    public void setCity(String value) {
        cityProperty().set(value);
    }

    public String getCity() {
        return cityProperty().get();
    }
    
    public StringProperty addressProperty() {
        if (address == null) {
            address = new SimpleStringProperty(this, "address");
        }
        return address;
    }

    public void setAddress(String value) {
        addressProperty().set(value);
    }

    public String getAddress() {
        return addressProperty().get();
    }
    
    public StringProperty telProperty() {
        if (tel == null) {
            tel = new SimpleStringProperty(this, "tel");
        }
        return tel;
    }

    public void setTel(String value) {
        telProperty().set(value);
    }

    public String getTel() {
        return telProperty().get();
    }
    
    public StringProperty mobileProperty() {
        if (mobile == null) {
            mobile = new SimpleStringProperty(this, "mobile");
        }
        return mobile;
    }

    public void setMobile(String value) {
        mobileProperty().set(value);
    }

    public String getMobile() {
        return mobileProperty().get();
    }
    
    public StringProperty faxProperty() {
        if (fax == null) {
            fax = new SimpleStringProperty(this, "fax");
        }
        return fax;
    }

    public void setFax(String value) {
        faxProperty().set(value);
    }

    public String getFax() {
        return faxProperty().get();
    }
    
    public StringProperty mailProperty() {
        if (mail == null) {
            mail = new SimpleStringProperty(this, "mail");
        }
        return mail;
    }

    public void setMail(String value) {
        mailProperty().set(value);
    }

    public String getMail() {
        return mailProperty().get();
    }
    
    public StringProperty connectionProperty() {
        if (connection == null) {
            connection = new SimpleStringProperty(this, "connection");
        }
        return connection;
    }

    public void setConnection(String value) {
        connectionProperty().set(value);
    }

    public String getConnection() {
        return connectionProperty().get();
    }
    
    public StringProperty assignmentProperty() {
        if (assignment == null) {
            assignment = new SimpleStringProperty(this, "assignment");
        }
        return assignment;
    }

    public void setAssignment(String value) {
        assignmentProperty().set(value);
    }

    public String getAssignment() {
        return assignmentProperty().get();
    }
}
